﻿@using WineStore.Extends;
@model WineStore.Models.Order
@{
    ViewBag.Title = "DeleteOrder";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
<!-- Table (TABLE) -->
@if (Session["Admin"] != null)
{
    <h3 class="tit">Cancel Bills
    </h3>
    <fieldset>
        <legend>Cancel Bills</legend>
        @using (Html.BeginForm("DeleteOrder", "Order", FormMethod.Post, new { enctype = "multipart/form-data" }))
        { 
            @Html.HiddenFor(model => model.OrderId)
            <table class="nostyle">
                <tbody>
                    <tr>
                        <td>Customer Name:
                        </td>
                        <td>
                            @ViewBag.CustomerName
                        </td>
                    </tr>
                    <tr>
                        <td>FullName (Shipping):
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.FullName)
                        </td>
                    </tr>
                    <tr>
                        <td>Address (Shipping):
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.Address)
                        </td>
                    </tr>
                    <tr>
                        <td>Phone (Shipping):
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.Phone)
                        </td>
                    </tr>
                    <tr>
                        <td>Email (Shipping):
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.Email)
                        </td>
                    </tr>
                    <tr>
                        <td>Total Price:
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.Total)
                        </td>
                    </tr>
                    <tr>
                        <td>Order Date:
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.OrderDate)
                        </td>
                    </tr>
                    <tr>
                        <td>Status:
                        </td>
                        <td>Pending
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" value="Cancel Bills" class="submit" />
                        </td>
                    </tr>
                </tbody>
            </table>
        }
    </fieldset>
}
else
{
    Response.Redirect("~/Admin/LogOn/");
}